package com.reger.easemob.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.easemob")
public class EasemobProperties {

	/**
	 * 环信app名
	 */
	private String appName = "";
	/**
	 * 环信组织id
	 */
	private String orgName = "";

	/**
	 * Retrofit线程池大小
	 */
	private int corePoolSize = 5;
	/**
	 * okhttp读取响应超时时间（秒为单位）
	 */
	private int readTimeout = 1;
	/**
	 * 发送请求超时时间（秒为单位）
	 */
	private int writeTimeout = 1;
	/**
	 * 链接超时时间（秒为单位）
	 */
	private int connectTimeout = 19;

	/**
	 * 是否验证接口的配置参数
	 */
	private boolean validateEagerly = true;

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public int getCorePoolSize() {
		return corePoolSize;
	}

	public void setCorePoolSize(int corePoolSize) {
		this.corePoolSize = corePoolSize;
	}

	public int getReadTimeout() {
		return readTimeout;
	}

	public void setReadTimeout(int readTimeout) {
		this.readTimeout = readTimeout;
	}

	public int getWriteTimeout() {
		return writeTimeout;
	}

	public void setWriteTimeout(int writeTimeout) {
		this.writeTimeout = writeTimeout;
	}

	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public boolean isValidateEagerly() {
		return validateEagerly;
	}

	public void setValidateEagerly(boolean validateEagerly) {
		this.validateEagerly = validateEagerly;
	}
	
	

}
